﻿@model  IEnumerable<Logic.ClarizenObjects.Attachment>
@{
    ViewBag.Title = "Index";
    Layout = null;
}



<div id="att_tabs" title='Notes/Emails/Documents'>
	<ul>
		<li><a href="#tabs-1">Notes <span class="NewLink Link" type="Note">+</span></a></li>
		<li><a href="@(Logic.Constants.CurrentUrl)/Attachments/List?task_id=@ViewBag.taskID&type=Post" title='Posts_Container'>Posts <span class="NewLink Link" type='Post'>+</span></a></li>
		<li><a href="@(Logic.Constants.CurrentUrl)/Documents/List?taskID=@ViewBag.taskID" title='Document_Container'>Documents</a></li>
	</ul>
    <div class="Note_Container" e_type="Note" id="tabs-1">
        @foreach (var note in Model)
        {
            <div class='Note' entity_id='@note.ID.Value'>
                <div class='Text'>@Html.Raw(note.Comment)</div>
                <div class='Date'>@note.CreatedBy_Name on @note.CreatedOnString <span class='VisibilityID'>@note.VisibilityID</span> 
                    <span class='Link' action='edit'>edit</span>
                    <span class='Link' action='delete'>Delete</span>
                </div>
                <div class='Comments'></div>
            </div>
        }
    </div>
    <div class="Post_Container" e_type="Post" id="Posts_Container">
    </div>
    <div class="Document_Container"  id="Document_Container" e_type="Document">
    </div>
</div>
 